package com.cwd.dao;

import com.cwd.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //判断是否有重复
    long findCountByorderDate(Date orderDate);
    //修改
    void update(OrderSetting orderSetting);
    //添加
    void add(OrderSetting orderSetting);
    //根据年月查询对应的预约设置信息
    List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);
    //根据日期修改可预约人数
    void editNumberByOrderDate(OrderSetting orderSetting);
    //根据预约时间查询当前预约时间是否设置了预约
    OrderSetting findByOrderDate(Date date);
    //设置预约人数+1
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
